package com.le.tester.sevice;

/**
 * 描述：产品的service层
 */
public interface StockService {

    String reduceStock(Long goodsId, Integer count);

    String reduceStockOne(Long goodsId, Integer count);

    String reduceStockForUpdate(Long goodsId, Integer count);

    String reduceStockCAS(Long goodsId, Integer count);

    String reduceStockRedisLock(Long goodsId, Integer count);

    String reduceStockRedissonLock(Long goodsId, Integer count);
}
